
#import <Foundation/Foundation.h>

#define apikey @"de1228f690b74aa3aae5633bfe4a58da"

@interface HXRequestManager : NSObject

/**
 *  支持的币种查询 http://apis.baidu.com/apistore/currencyservice/type
 *
 *  @param success <#success description#>
 *  @param failure <#failure description#>
 */
- (void)getCurrencySupportListRequest:(void(^)(NSArray *responseAry, NSInteger responseCode))success
                              failure:(void(^)(NSString *localizedDescription))failure ;
- (void)getEx:(NSString *)scur tcur:(NSString *)tcur res:(void(^)(NSDictionary *responseAry))res;
/**
 *  汇率转换 http://apis.baidu.com/apistore/currencyservice/currency?fromCurrency=%@&toCurrency=%@&amount=%@
 *
 *  @param fromCurrency 待转化的币种
 *  @param toCurrency   转化后的币种
 *  @param amount       转化金额
 *  @param success      <#success description#>
 *  @param failure      <#failure description#>
 */
- (void)getExchangeRateConversionReuqestWithFromCurrency:(NSString *)fromCurrency
                                              toCurrency:(NSString *)toCurrency
                                                  amount:(NSString *)amount
                                                 success:(void(^)(NSDictionary *responseDic, NSInteger responseCode))success
                                                 failure:(void(^)(NSString *localizedDescription))failure;

@end
